<?php

class Ext_Url_Tag
{
    public $articleList;
    
    public function __construct($tagId)
    {
        $this->_build($tagId);
    }
    
    private function _build($tagId)
    {
        $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
        $bootstrap->bootstrap('view');
        $view = $bootstrap->getResource('view');
        
        $this->articleList = $view->url(array('module'=>'default', 'controller'=>'search', 'action'=>'tag', 'tagId'=>$tagId), "default", true);
    
    }

}